#include<stdio.h>
int main()
{
	int n,ans=0;
	scanf("%d",&n);
	int l=0,r=10000000,mid;
	while(l<=r){
		ans++;
		mid=(r+l)/2;
		if(n==mid) break;
		else if(mid>n)
			r=mid;
		else 
			l=mid;
	}
	printf("%d",ans);
	return 0;
}
